<?php
if($msg !=''){
	echo $msg;

}
else {
echo $this->template->add_css("user-edit-profile.css");
?>

<div id="fgpage">
	<div id="content" style="width:680px; float:left">
		<h1><span>Thông tin tài khoản</span></h1>
		<div class="clear" style="height:10px">
		</div>
		<div class="wpuf-profile">
            <form name="profile" id="your-profile" action="" method="post">
				<div class="wpuf-userinfo">
					<div class="wpuf-userinfo-head">
						<div class="wpuf-userinfo-left">
							<div class="wpuf-userinfo-avatar">
								<img src="<?php echo image_thumbnail($user->use_avatar,'user-avatar-medium'); ?>" alt="" class="avatar avatar-124  photo user-1-avatar" width="124" height="124" id="user-avatar">
							</div>
							<div class="wpuf-userinfo-username"><?php echo $user->use_account; ?>
							</div>
						
						</div>
						<!-- The global progress bar -->
   
						<div class="wpuf-userinfo-right">
							<div><span>Cấp độ:</span><?php echo @$trophy;?></div>
							<div><span>Điểm kinh nghiệm:</span> <?php echo @$user->use_scores;?></div>
							<div><span>Hạng:</span> <?php echo @$user->use_rank;?></div>
							<div><span>Điểm kinh nghiệm bạn đã tích lũy thêm trong hôm nay:</span> <?php echo $score_today;?></div>
						</div>
					</div>
					<div class="wpuf-userinfo-basic">	
					
				<div id="progress" class="progress">
				<div class="progress-bar progress-bar-success"></div>
				</div>

						<div class="wpuf-userinfo-title">Thông tin cơ bản</div>
						<div class="wpuf-userinfo-basic-left">
							<div>
								<div>
									<span class="label">Họ tên:</span>
									<span class="text" id="text_fullname"> <?php echo @$user->use_name;?></span>
									
								</div><a href="javascript:void(0);" class="wpuf-userinfo-edit-1" id="fullname"></a>
							</div>
							<div>
								<div>
									<span class="label">Công việc:</span> 
									<span class="text" id="text_job"><?php echo @$user->use_job;?></span>
									
								</div>
								<a href="javascript:void(0);" class="wpuf-userinfo-edit-1" id="job"></a>
							</div>
							<div>
								<div>
									<span class="label">Sở thích:</span> <span class="text" id="text_preference"> <?php echo @$user->use_preference;?></span> 
								</div>
								<a href="javascript:void(0);" class="wpuf-userinfo-edit-1" id="preference"></a>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
	 <div class="clear"></div>
 <?php
if (is_module_active('user_game_favorites_module') &&  function_exists('run_widget')) run_widget('user_game_play_module', array('view'=> 'index','use_id'=>@$user->use_id, 'num'=>25));

?>
</div>
<style>
.wpuf-userinfo-basic-left >div:hover, .wpuf-userinfo-head .wpuf-userinfo-left:hover {
background: none;
}
</style>


<?php } ?>